package Map;

import java.util.*;

public class MapTest {
    public static void main(String[] args) {
        Map map1=new HashMap();
        map1.put("k1","v1");
        map1.put("k2","v2");
        map1.put("k3","v3");

        //Key
        Set key1=map1.keySet();
        for(Object e:key1){
            System.out.println(e);
        }
        System.out.println("====================");
        //Value
        Collection values1=map1.values();
        for(Object e:values1){
            System.out.println(e);
        }
    }
}
